﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
	xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
	mc:Ignorable="d"
	x:Class="MoneyManagerNET.Presentation.ArrowButton"
	x:Name="UserControl"
	d:DesignWidth="16" d:DesignHeight="16">
	<i:Interaction.Triggers>
		<i:EventTrigger EventName="MouseEnter" SourceObject="{Binding ElementName=UserControl}">
			<ei:GoToStateAction TargetName="grid" TargetObject="{Binding ElementName=UserControl}" StateName="True"/>
		</i:EventTrigger>
		<i:EventTrigger EventName="MouseLeave" SourceObject="{Binding ElementName=UserControl}">
			<ei:GoToStateAction TargetObject="{Binding ElementName=UserControl}" StateName="False"/>
		</i:EventTrigger>
	</i:Interaction.Triggers>
	<Grid x:Name="grid" >
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="MouseHover">
				<VisualStateGroup.Transitions>
					<VisualTransition GeneratedDuration="0:0:1"/>
				</VisualStateGroup.Transitions>
				<VisualState x:Name="False">
					<Storyboard/>
				</VisualState>
				<VisualState x:Name="True">
					<Storyboard>
						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="grid">
							<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.41"/>
							<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0.41"/>
							<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.651"/>
						</DoubleAnimationUsingKeyFrames>
						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="grid">
							<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.59"/>
							<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0.59"/>
							<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.831"/>
						</DoubleAnimationUsingKeyFrames>
						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[4].(GradientStop.Offset)" Storyboard.TargetName="grid">
							<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
							<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0.253"/>
						</DoubleAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<Grid.Background>
			<RadialGradientBrush>
				<GradientStop Color="#FFF58459" Offset="0.024"/>
				<GradientStop Color="#FFF58459" Offset="0.992"/>
				<GradientStop Color="#FFF58459" Offset="0.353"/>
				<GradientStop Color="White"/>
				<GradientStop Color="#FFFAC8B5"/>
			</RadialGradientBrush>
		</Grid.Background>
		<Grid.OpacityMask>
			<RadialGradientBrush>
				<GradientStop Color="Black" Offset="0"/>
				<GradientStop Offset="0.948"/>
				<GradientStop Color="#AB535353" Offset="0.772"/>
			</RadialGradientBrush>
		</Grid.OpacityMask>
					
		<TextBlock x:Name="textBlock" Text="&gt;" RenderTransformOrigin="0.5,0.5" Margin="4.65,-1.052,3.135,1.069" d:LayoutOverrides="Width, Height"/>
	</Grid>
</UserControl>